package design_patterns

type MobileFactory interface {
	CreateMobile() Mobile
}

type XiaomiFactory struct {
}

func (mf XiaomiFactory) CreateMobile() Mobile {
	return &XiaoMi{"小米"}
}

type HuaweiFactory struct{}

func (hw HuaweiFactory) CreateMobile() Mobile {
	return &HuaWei{"华为"}
}
